package L1;

import java.util.Scanner;

public class _010 {

	public static void main(String[] args) {
		Scanner reader=new Scanner(System.in);
		int low,middle,high,temp;
		low=reader.nextInt();
		middle=reader.nextInt();
		high=reader.nextInt();
		if(low>middle)
		{
			temp=middle;
			middle=low;
			low=temp;
		}
		if(middle>high)
		{
			temp=high;
			high=middle;
			middle=temp;
		}
		if(low>middle)
		{
			temp=middle;
			middle=low;
			low=temp;
		}
		System.out.print(low+"->"+middle+"->"+high);
		reader.close();

	}

}
